package com.tca.springmvc.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

/**
 * @author zhouan
 * @Date 2021/8/20
 * 这个是根容器, 相当于ApplicationContext.xml,包扫描的时候要排除@Controller注解, 避免重复扫描
 */
@ComponentScan(value ={"com.tca"},
        excludeFilters={@ComponentScan.Filter(type = FilterType.ANNOTATION,value = {Controller.class})})
public class RootConfig {
}
